package com.yaorange.module.system.service;

import com.yaorange.module.system.entity.dto.SysUserQueryDTO;
import com.yaorange.pojo.SysUser;
import com.yaorange.response.PageResult;

public interface SysUserService {
    PageResult<SysUser> findAll(SysUserQueryDTO sysUserQueryDTO);

    void save(SysUser sysUser);

    SysUser findById(Integer id);

    void update(Integer id, SysUser userDetails);

    void deleteById(Integer id);

    void grantRolesList(Long id,boolean isAdmin);

    SysUser findByUsername(String username);
}
